package com.zwx.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * websocket 的配置类
 *
 * @author 文希
 * @create 2020-03-22 21:32
 */
@Configuration
public class WebSocketConfig {

    /**
     * 注入ServerEndpointExporter
     *
     * @return {@link ServerEndpointExporter}
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
